using System.Diagnostics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input.Touch;
using Rocuna.Controls;
using Rocuna.Controls.Shapes;
using Rocuna.GameEngine;
using Rocuna.GameEngine.Extension.WP7.Controls;
using Rocuna.GameEngine.Extension.WP7.Input.Constants;
using Rocuna.GameEngine.Input;
using Rocuna.GameEngine.State;
using Rocuna.GameEngine.State.Screens;

namespace POCGame.Screens
{
    public class MainMenu : MenuScreen
    {
        public MainMenu(Game game)
            : base(game)
        {
            var button = new PhoneButton(game)
                             {
                                 Foreground = Game.Content.Load<Texture2D>("Rocuna"),
                                 Border = new Circle(50, 50, 50),
                             };
            button.Click += ((s, e) =>
                                 {
                                     var screenManager =
                                         Game.Services.GetService(typeof(ScreenManager)) as ScreenManager;
                                     screenManager.ActivateScreen("Level1Launcher");
                                 });
            Buttons.Add(button);
        }
    }
}